import request from '@/utils/httpRequest/request'

const url = {
    key: "/api/file/sts",
    register: "/api/avatar/register",
    info: "/api/file/info"
};

export const resource = {
    key: function() {
        return request({
            url: url.key,
            method: "get",
        });
    },
    register: function(params) {
        return request({
            url: url.register,
            method: "post",
            data: params,
        });
    },
    info: function(params) {
        return request({
            url: url.info,
            method: "get",
            params: params,
        });
    },
};